import axios from 'axios'
const ajax = axios.create({
    baseURL:'http://jsonplaceholder.typicode.com'
})
export const getPosts = ()=> {
    return ajax.get('/posts')
}